modified for proj1