fix initialize inputs