rsepc
changed place of method and added test