removed uneccesary function