working for assignment
fix gcc