remove unnecessary functions, add credit