remove extra function creation