assignment not working