finish cryptsy function