reference not working