removes unnecessary function