removes unnecessary function call