added spike code for profile
added spike code for profile