fixed performance error, started sphere implementation