added mobile compatibility