creating spark method for easyextending