fixing rookie mistake