works on develpment but not production having trouble