fixed the double function, made it one