You were right, I was making an amateur mistake, thanks for the help