correctly preparing statement