added utility methods
updated code page