helper and errorjs added and code optimized by removing duplicate code lines
version incremented