working on C only prob