get rid of hard coded parameters