$ 0 0 I changed the code to this and it worked:) is this the correct way to do it or is there a best practice i should be following?